﻿<div id="layout-menu">
@if (Request.IsAuthenticated) {
    <span>Пользователь [@Context.User.Identity.Name] |</span>
    @Html.ActionLink("Выход", "Logoff", "Account")    
}
else {
    @Html.ActionLink("Войти", "Logon", "Account") <span>|</span>
    @Html.ActionLink("Регистрация", "Register", "Account")
}
</div>

